import java.io.File;

class Test {
	public static void main(String[] args) {
		File tmp=new File("/tmp");
		File hello=new File(tmp, "/../tmp/hello-world");
		hello=new File("./aa/bb");
		hello.mkdir();
		System.out.println(hello.exists());
		System.out.println(hello.isFile());
		System.out.println(hello.isDirectory());
		System.out.println(hello.getPath());
		System.out.println(hello.getAbsolutePath());
		try {
			System.out.println(hello.getCanonicalPath());
		}
		catch(Exception ex) {}
	}
}
